public class ConsumerInformation {

    private PhoneCard phoneCard;
    private PhonePackage phonePackage;
    private InternetPackage internetPackage;

    public void show() {
        System.out.println(
                "您本月通话时长为:" + phoneCard.getCallTime() + "分钟,上网流量为:" +
                internetPackage.getInternetTraffic() + "M, 每月消费金额为:" +
                (phonePackage.calMonthlyCharges() + internetPackage.calMonthlyCharges() ) + "元"
        );
    }

    public ConsumerInformation() {
    }

    public ConsumerInformation(PhoneCard phoneCard, PhonePackage phonePackage, InternetPackage internetPackage) {
        setPhoneCard(phoneCard);
        setPhonePackage(phonePackage);
        setInternetPackage(internetPackage);
    }

    public PhoneCard getPhoneCard() {
        return phoneCard;
    }

    public void setPhoneCard(PhoneCard phoneCard) {
        this.phoneCard = phoneCard;
    }

    public PhonePackage getPhonePackage() {
        return phonePackage;
    }

    public void setPhonePackage(PhonePackage phonePackage) {
        this.phonePackage = phonePackage;
    }

    public InternetPackage getInternetPackage() {
        return internetPackage;
    }

    public void setInternetPackage(InternetPackage internetPackage) {
        this.internetPackage = internetPackage;
    }
}
